package com.rapid.user.module.controller;

import com.rapid.user.module.vo.SysUser;
import com.rapid.user.module.service.SysUserService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 用户表(SysUser)表控制层
 *
 * @author zxh
 * @since 2019-03-20 20:31:52
 */
@RestController
public class SysUserController {
    /**
     * 服务对象
     */
    @Resource
    private SysUserService sysUserService;


    /**
     * 通过主键查询单条数据
     *
     * @param name 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SysUser selectOne(String name) {
        return this.sysUserService.queryByName(name);
    }




}